import {request} from '@/utils/request'

//获取开始节点信息
export function wfgetStartTo(param) {  
  return request({
    url: '/wf/getStartTo',
    method: 'post',    
    data: param,
    type: 2
  })
}

// 启动流程
export function wfstartTo(param) {
  return request({
    url: '/wf/startTo',
    method: 'post',
    data: param,
    type: 2
  })
}

//获取发送节点信息
export function wfgetSendTo(param) {
  return request({
    url: '/wf/getSendTo',
    method: 'post',
    data: param,  
    type: 2
  })
}

//发送流程
export function wfsendTo(param) {
  return request({
    url: '/wf/sendTo',
    method: 'post',
    data: param,
    type: 2
  })
}

//获取回退节点信息
export function wfgetBackTo(param) {
  return request({
    url: '/wf/getBackTo',
    method: 'post',
    data: param,    
    type: 2
  })
}

//获取回退首节点信息
export function wfgetBackFirst(param) {
  return request({
    url: '/wf/getBackFirst',
    method: 'post',
    data: param,    
    type: 2
  })
}

//回退流程
export function wfbackTo(param) {
  return request({
    url: '/wf/backTo',
    method: 'post',
    data: param,
    type: 2
  })
}

//获取日志  wfInstId
export function wflogs(param) {
  return request({
    url: '/wf/logs',
    method: 'post',
    data: param,    
  })
}


//获取流程图  wfInstId
export function wfimage(param) {
  return request({
    url: '/wf/image',
    method: 'post',
    data: param,    
  })
}

//终止（作废）流程 wfInstId  instNodeId  word
export function wfoutWf(param) {
  return request({
    url: '/wf/outWf',
    method: 'post',
    data: param,    
    type: 2
  })
}

